package com.qlzb.taskmanagement.utils;



import com.qlzb.taskmanagement.vo.quartzVo.OperationColumnId;

import java.lang.reflect.Field;

public class ParseAnnotation {
    public static int getOperationColumnId(Field field){
        OperationColumnId operationColumnId=field.getAnnotation(OperationColumnId.class);
        if(operationColumnId==null){
            return 0;
        }
        return operationColumnId.j_id();
    }
    public static String getOperationColumnName(Field field){
        OperationColumnId operationColumnId=field.getAnnotation(OperationColumnId.class);
        if(operationColumnId==null){
            return null;
        }
        return operationColumnId.name();
    }
}
